package com.zenithsun;

import com.zenithsun.common.utils.SpringContextUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 系统启动类
 */
@MapperScan("com.zenithsun")//mybatis mapper扫描用
@SpringBootApplication
/*@EnableAutoConfiguration(exclude = {
		org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class
})*/
public class RestwebApplication {
    private  static Logger logger= LoggerFactory.getLogger(RestwebApplication.class);
	public static void main(String[] args) {
		SpringApplication.run(RestwebApplication.class, args);
		logger.info("RestwebApplication启动完成");
		logger.info("系统默认激活文件"+
				SpringContextUtil.getActiveProfile()
		);

	}
}
